<!DOCTYPE html>
<html>



<head>
    <script>window.serq=[];StackExchange={ready:function(f){serq.push(f)}}</script>
    <script type='text/javascript'>mPt=function(){var t=[];return{t:t,probe:function(n){t.push({d:new Date(),n:n})}}}()</script>
    
    <title>64bit - How do I run a VBScript in 32-bit mode on a 64-bit machine? - Stack Overflow</title>
    <link rel="shortcut icon" href="http://cdn.sstatic.net/stackoverflow/img/favicon.ico">
    <link rel="apple-touch-icon" href="http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png">
    <link rel="search" type="application/opensearchdescription+xml" title="Stack Overflow" href="/opensearch.xml">

    
    
    
    <script type='text/javascript'>mPt.probe(2)</script><link rel="stylesheet" type="text/css" href="http://cdn.sstatic.net/stackoverflow/all.css?v=322559685cba"><script type='text/javascript'>mPt.probe(2)</script>
    
    <meta name="relativepagescore" content="249145">
    <link rel="canonical" href="http://stackoverflow.com/questions/2806584/how-do-i-run-a-vbscript-in-32-bit-mode-on-a-64-bit-machine">
    <link rel="alternate" type="application/atom+xml" title="Feed for question 'How do I run a VBScript in 32-bit mode on a 64-bit machine?'" href="/feeds/question/2806584">
    <meta name="title" content="64bit - How do I run a VBScript in 32-bit mode on a 64-bit machine? - Stack Overflow">
    <link rel="image_src" href="http://sstatic.net/stackoverflow/img/apple-touch-icon.png">



    

</head>
<body class="question-page">
    <noscript><div id="noscript-padding"></div></noscript>
    <div id="notify-container"></div>
    <div id="overlay-header"></div>
    <div id="custom-header"></div>

    <div class="container">
        <div id="header">
            <div id="portalLink">
                <a class="genu" href="http://stackexchange.com" onclick="StackExchange.ready(function(){genuwine.click();});return false;">Stack Exchange</a>
            </div>
            <div id="topbar">
                <div id="hlinks">
                    <span id="hlinks-user">
                  
                  </span>
                  <span id="hlinks-nav">
                  <a href="/users/login?returnurl=%2fquestions%2f2806584%2fhow-do-i-run-a-vbscript-in-32-bit-mode-on-a-64-bit-machine">log in</a>
 <span class="lsep">|</span>
<a href="http://careers.stackoverflow.com">careers</a>
 <span class="lsep">|</span>

                  </span>
                  <span id="hlinks-custom">
                  <a href="http://chat.stackoverflow.com">chat</a>
 <span class="lsep">|</span>
<a href="http://meta.stackoverflow.com">meta</a>
 <span class="lsep">|</span>
<a href="/about">about</a>
 <span class="lsep">|</span>
<a href="/faq">faq</a>
                  </span>
                </div>
                <div id="hsearch">
                    <form id="search" action="/search" method="get" autocomplete="off">
                    <div>
                        <input autocomplete="off" name="q" class="textbox" placeholder="search" tabindex="1" type="text" maxlength="140" size="28" value="">
                    </div>
                    </form>
                </div>
            </div>
            <br class="cbt">
            <div id="hlogo">
                <a href="/" >Stack Overflow</a>
            </div>
            <div id="hmenus">
                <div class="nav mainnavs">
                    <ul>
                        <li class="youarehere"><a id="nav-questions" href="/questions">Questions</a></li>
                        <li><a id="nav-tags" href="/tags">Tags</a></li>
                        <li><a id="nav-users" href="/users">Users</a></li>
                        <li><a id="nav-badges" href="/badges">Badges</a></li>
                        <li><a id="nav-unanswered" href="/unanswered">Unanswered</a></li>
                    </ul>
                </div>
                <div class="nav askquestion">
                    <ul>
                        <li>
                            <a id="nav-askquestion"  href="/questions/ask">Ask Question</a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>

        


        <div id="content">
            <script type='text/javascript'>mPt.probe(3)</script>
            


<div itemscope itemtype="http://schema.org/Article">
<link itemprop="image" href="http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png">
<div id="question-header">
    <h1 itemprop="name"><a href="/questions/2806584/how-do-i-run-a-vbscript-in-32-bit-mode-on-a-64-bit-machine" class="question-hyperlink">How do I run a VBScript in 32-bit mode on a 64-bit machine?</a></h1>
</div>
<div id="mainbar">


<div class="question" id="question" data-questionid="2806584" >

    <div class="everyonelovesstackoverflow" id="adzerk1">
    </div>

    
    <table>
    <tr>
    <td class="votecell">
        

<div class="vote">
    <input type="hidden" value="2806584">
    <a class="vote-up-off" title="This question shows research effort; it is useful and clear (click again to undo)">up vote</a>
    <span class="vote-count-post">13</span>
    <a class="vote-down-off" title="This question does not show any research effort; it is unclear or not useful (click again to undo)">down vote</a>
    <a class="star-off" href="#" title="This is a favorite question (click again to undo)">favorite</a>
    <div class="favoritecount"><b>3</b></div>   
 
    <a id="gp-share-2806584" class="gp-share" title="share link to this question on Google+">share [g+]</a>
    <a id="fb-share-2806584" class="fb-share" title="share link to this question on Facebook">share [fb]</a>
    <a id="twitter-share-2806584" class="twitter-share" title="share link to this question on Twitter">share [tw]</a>    
</div>

    </td>
<td class="postcell">
<div>          
    <div class="post-text" itemprop="description">
        <p>I have a text file that ends with .vbs that I have written the following in:</p>

<p><pre><code>Set Conn = CreateObject("ADODB.Connection")
Conn.Provider = "Microsoft.ACE.OLEDB.12.0"
Conn.Properties("Data Source") = "C:\dummy.accdb"
Conn.Properties("Jet OLEDB:Database Password") = "pass"
Conn.Open</p>

<p>Conn.Close
Set Conn = Nothing</pre></code></p>

<p>When I execute this on a Windows 32-bit machine it runs and ends without any notion (expected). When I execute this on a Windows 64-bit machine it gets the error "Provider cannot be found. It may not be properly installed.".</p>

<p>But it is installed. I think the root of the problem is that the provider is a 32-bit provider, as far as I know it doesn't exist as 64-bit.</p>

<p>If I run the VBScript through IIS on my 64-bit machine (as a ASP file) I can select that it should run in 32-bit mode. It can then find the provider.</p>

<p>How can I make it find the provider on Windows 64-bit? Can I tell CScript (which executes the .vbs text file) to run in 32-bit mode somehow?</p>

    </div>            
    <div class="post-taglist">
        <a href="/questions/tagged/vbscript" class="post-tag" title="show questions tagged 'vbscript'" rel="tag">vbscript</a> <a href="/questions/tagged/64bit" class="post-tag" title="show questions tagged '64bit'" rel="tag">64bit</a> <a href="/questions/tagged/32bit" class="post-tag" title="show questions tagged '32bit'" rel="tag">32bit</a> <a href="/questions/tagged/adodb" class="post-tag" title="show questions tagged 'adodb'" rel="tag">adodb</a> <a href="/questions/tagged/provider" class="post-tag" title="show questions tagged 'provider'" rel="tag">provider</a> 
    </div>
    <table class="fw">
    <tr>
    <td class="vt">
        <div class="post-menu"><a href="/q/2806584" title="short permalink to this question" id="link-post-2806584">link</a><span class="lsep">|</span><a href="/posts/2806584/edit" >improve this question</a></div>
    </td>
    <td class="post-signature owner">
    <div class="user-info"><div class="user-action-time">asked <span title="2010-05-10 21:29:40Z" class="relativetime">May 10 '10 at 21:29</span></div><div class="user-gravatar32"><a href="/users/336580/peter"><div class=""><img src="http://www.gravatar.com/avatar/964ba0906955877024bd137083d94c0d?s=32&amp;d=identicon&amp;r=PG" alt="" width="32" height="32"></div></a></div><div class="user-details"><a href="/users/336580/peter">Peter</a><br><span class="reputation-score" title="reputation score" dir="ltr">100</span><span title="2 gold badges"><span class="badge1"></span><span class="badgecount">2</span></span><span title="3 silver badges"><span class="badge2"></span><span class="badgecount">3</span></span><span title="8 bronze badges"><span class="badge3"></span><span class="badgecount">8</span></span></div></div>
    </td>
    </tr>
    </table>
</div>
</td>    </tr>


<tr>
<td class="votecell"></td>
<td>
    <div id="comments-2806584" class="comments dno">
        <table>
        <tbody>
        
            <tr><td></td><td></td></tr>
        
        </tbody>
    
        </table>
    </div>
    
    
    <div class="was-this-helpful">
        feedback
    </div>
    
</td>
</tr>    </table>    
</div>



<div id="answers">

    <a name="tab-top"></a>
    <div id="answers-header">
        <div class="subheader answers-subheader">
            <h2>2 Answers</h2>
            <div id="tabs">
                <a href="/questions/2806584/how-do-i-run-a-vbscript-in-32-bit-mode-on-a-64-bit-machine?answertab=active#tab-top" title="Answers with the latest activity first">active</a>
<a href="/questions/2806584/how-do-i-run-a-vbscript-in-32-bit-mode-on-a-64-bit-machine?answertab=oldest#tab-top" title="Answers in the order they were provided">oldest</a>
<a class="youarehere" href="/questions/2806584/how-do-i-run-a-vbscript-in-32-bit-mode-on-a-64-bit-machine?answertab=votes#tab-top" title="Answers with the highest score first">votes</a>

            </div>
        </div>    
    </div>    


  
    <a name="2806631"></a>
    <div id="answer-2806631" class="answer"  data-answerid="2806631">
        <table>
        <tr>
        <td class="votecell">
            

<div class="vote">
    <input type="hidden" value="2806631">
    <a class="vote-up-off" title="This answer is useful (click again to undo)">up vote</a>
    <span class="vote-count-post">16</span>
    <a class="vote-down-off" title="This answer is not useful (click again to undo)">down vote</a>
<span class="vote-accepted-on" title="The question owner accepted this as the best answer May 10 '10 at 21:47">accepted</span> 
</div>

        </td>


<td class="answercell">
    <div class="post-text"><p>follow <a href="http://support.microsoft.com/kb/896456" rel="nofollow">http://support.microsoft.com/kb/896456</a></p>

<p>To start a 32-bit command prompt, follow these steps:</p>

<pre><code>* Click Start, click Run, type %windir%\SysWoW64\cmd.exe, and then click OK.
</code></pre>

<p>Then type</p>

<pre><code>cscript vbscriptfile.vbs
</code></pre>
</div>
    <table class="fw">
    <tr>
    <td class="vt">
<div class="post-menu"><a href="/a/2806631" title="short permalink to this answer" id="link-post-2806631">link</a><span class="lsep">|</span><a href="/posts/2806631/edit" >improve this answer</a></div>    </td>
            

    <td align="right" class="post-signature">   
       

    <div class="user-info"><div class="user-action-time">answered <span title="2010-05-10 21:37:55Z" class="relativetime">May 10 '10 at 21:37</span></div><div class="user-gravatar32"><a href="/users/241811/volody"><div class=""><img src="http://www.gravatar.com/avatar/9af57d2a1f7919f7c2b81fa2388f9cac?s=32&amp;d=identicon&amp;r=PG" alt="" width="32" height="32"></div></a></div><div class="user-details"><a href="/users/241811/volody">volody</a><br><span class="reputation-score" title="reputation score" dir="ltr">2,223</span><span title="1 gold badge"><span class="badge1"></span><span class="badgecount">1</span></span><span title="5 silver badges"><span class="badge2"></span><span class="badgecount">5</span></span><span title="15 bronze badges"><span class="badge3"></span><span class="badgecount">15</span></span></div></div>
    </td>
    </tr>
    </table>
</td>        </tr>


<tr>
<td class="votecell"></td>
<td>
    <div id="comments-2806631" class="comments">
        <table>
        <tbody>
                    
    <tr id="comment-2844708" class="comment">
        <td></td>
        <td class="comment-text"><div><span class="comment-copy">Thanks a lot, it worked. :) Didn&#39;t know SysWoW64 contained a 32-bit command prompt, why is it named &quot;SysWoW64&quot; anyway?</span> &ndash;&nbsp;<a href="/users/336580/peter" title="100 reputation" class="comment-user owner">Peter</a> <span class="comment-date" dir="ltr"><span title="2010-05-10 21:41:50Z">May 10 '10 at 21:41</span></span></div></td>
    </tr>
            
    <tr id="comment-2844716" class="comment">
        <td class="comment-actions"><table><tbody><tr>
<td class="comment-score">
<span title="number of 'great comment' votes received" class="cool">1</span>
</td>
<td>
&nbsp;
</td></tr>
</tbody></table></td>
        <td class="comment-text"><div><span class="comment-copy">WoW stands for Windows on Windows. It&#39;s a compatibility layer that makes 64-bit Windows act like 32-bit Windows so it can run 32-bit programs.</span> &ndash;&nbsp;<a href="/users/45084/tmdean" title="2267 reputation" class="comment-user">Tmdean</a> <span class="comment-date" dir="ltr"><span title="2010-05-10 21:43:50Z">May 10 '10 at 21:43</span></span></div></td>
    </tr>
            
    <tr id="comment-2844763" class="comment">
        <td></td>
        <td class="comment-text"><div><span class="comment-copy">Very helpful and interesting, I didn&#39;t know that. Always nice to get closer to understanding the inner workings of Windows, thanks a lot.</span> &ndash;&nbsp;<a href="/users/336580/peter" title="100 reputation" class="comment-user owner">Peter</a> <span class="comment-date" dir="ltr"><span title="2010-05-10 21:48:56Z">May 10 '10 at 21:48</span></span></div></td>
    </tr>

        </tbody>
    
        </table>
    </div>
    
    
    <div class="was-this-helpful">
        feedback
    </div>
    
</td>
</tr>    </table>
</div>

    <div class="everyonelovesstackoverflow" id="adzerk3">
    </div>

    
  
    <a name="2806615"></a>
    <div id="answer-2806615" class="answer"  data-answerid="2806615">
        <table>
        <tr>
        <td class="votecell">
            

<div class="vote">
    <input type="hidden" value="2806615">
    <a class="vote-up-off" title="This answer is useful (click again to undo)">up vote</a>
    <span class="vote-count-post">5</span>
    <a class="vote-down-off" title="This answer is not useful (click again to undo)">down vote</a>
 
</div>

        </td>


<td class="answercell">
    <div class="post-text"><p>If you have control over running the cscript executable then run the <code>X:\windows\syswow64\cscript.exe</code> version which is the 32bit implementation.</p>
</div>
    <table class="fw">
    <tr>
    <td class="vt">
<div class="post-menu"><a href="/a/2806615" title="short permalink to this answer" id="link-post-2806615">link</a><span class="lsep">|</span><a href="/posts/2806615/edit" >improve this answer</a></div>    </td>
            

    <td align="right" class="post-signature">   
       

    <div class="user-info"><div class="user-action-time">answered <span title="2010-05-10 21:35:04Z" class="relativetime">May 10 '10 at 21:35</span></div><div class="user-gravatar32"><a href="/users/191953/tyranid"><div class=""><img src="http://www.gravatar.com/avatar/c3dfaf1aa894d135cd2ca1a9cb685165?s=32&amp;d=identicon&amp;r=PG" alt="" width="32" height="32"></div></a></div><div class="user-details"><a href="/users/191953/tyranid">tyranid</a><br><span class="reputation-score" title="reputation score" dir="ltr">6,176</span><span title="7 silver badges"><span class="badge2"></span><span class="badgecount">7</span></span><span title="11 bronze badges"><span class="badge3"></span><span class="badgecount">11</span></span></div></div>
    </td>
    </tr>
    </table>
</td>        </tr>


<tr>
<td class="votecell"></td>
<td>
    <div id="comments-2806615" class="comments">
        <table>
        <tbody>
                    
    <tr id="comment-2844698" class="comment">
        <td></td>
        <td class="comment-text"><div><span class="comment-copy">Thanks a lot, it worked. :)</span> &ndash;&nbsp;<a href="/users/336580/peter" title="100 reputation" class="comment-user owner">Peter</a> <span class="comment-date" dir="ltr"><span title="2010-05-10 21:41:06Z">May 10 '10 at 21:41</span></span></div></td>
    </tr>

        </tbody>
    
        </table>
    </div>
    
    
    <div class="was-this-helpful">
        feedback
    </div>
    
</td>
</tr>    </table>
</div>
    <a name='new-answer'></a>
    <form id="post-form" action="/questions/2806584/answer/submit" method="post"  class="post-form">
        <h2 class="space">Your Answer</h2>




<div id="post-editor" class="post-editor">  

    
    <div class="wmd-container">
        <div id="wmd-button-bar" class="wmd-button-bar"></div>
        <textarea id="wmd-input" class="wmd-input" name="post-text" cols="92" rows="15" tabindex="101"></textarea>
    </div>

    <div class="fl" style="margin-top: 8px; height:24px;">&nbsp;</div>
    <div id="draft-saved" class="draft-saved community-option fl" style="margin-top: 8px; height:24px; display:none;">draft saved</div>

    <div id="draft-discarded" class="draft-discarded community-option fl" style="margin-top: 8px; height:24px; display:none;">draft discarded</div>



    <div id="wmd-preview" class="wmd-preview"></div>
    <div></div>
    <div class="edit-block">
        <input id="fkey" name="fkey" type="hidden" value="b571d2f1ba35e5ae5a511479d6e89706">
        <input id="author" name="author" type="text">
    </div>
</div>    <div class="form-item">
        <table>
        <tr>
            <td class="vm open-id-login">
                <a id="login-link" style="font-size: 200%; margin-left: 30px;" href="/users/login?returnurl=%2fquestions%2f2806584%2fhow-do-i-run-a-vbscript-in-32-bit-mode-on-a-64-bit-machine">log in</a>
                <script type="text/javascript">
                    StackExchange.ready(function () {
                        StackExchange.helpers.onClickDraftSave('#login-link');
                    });
                </script>
            </td>
            <td class="orcell">
                <div class="orword">or</div>
                <div class="orline"></div>
            </td>
            <td class="vm">
                <div>
                    <label for="display-name">Name</label>
                    <input id="display-name" name="display-name" type="text" size="30" maxlength="30" value="" tabindex="105">
                </div>
                <div>
                    <label for="m-address">Email</label>
                    <input id="m-address" name="m-address" type="text" size="40" maxlength="100" value="" tabindex="106">
                    <span class="edit-field-overlay">required, but never shown</span>
                </div>
                <div>
                    <label for="home-page">Home Page</label>
                    <input id="home-page" name="home-page" type="text" size="40" maxlength="200" value="" tabindex="107">
                </div>
            </td>
        </tr>
        </table>
    </div>
           
        <div class="form-submit cbt">
            <input id="submit-button" type="submit" value="Post Your Answer" tabindex="110">
            <a href="#" class="discard-answer dno">discard</a>
    <p class="privacy-policy-agreement">
        By posting your answer, you agree to the 
        <a href="http://stackexchange.com/legal/privacy-policy" target="_blank">privacy policy</a> and 
        <a href="http://stackexchange.com/legal/terms-of-service" target="_blank">terms of service</a>.
    </p>
        </div>
    </form>




        <h2 class="bottom-notice">
                Not the answer you're looking for? 
            Browse other questions tagged <a href="/questions/tagged/vbscript" class="post-tag" title="show questions tagged 'vbscript'" rel="tag">vbscript</a> <a href="/questions/tagged/64bit" class="post-tag" title="show questions tagged '64bit'" rel="tag">64bit</a> <a href="/questions/tagged/32bit" class="post-tag" title="show questions tagged '32bit'" rel="tag">32bit</a> <a href="/questions/tagged/adodb" class="post-tag" title="show questions tagged 'adodb'" rel="tag">adodb</a> <a href="/questions/tagged/provider" class="post-tag" title="show questions tagged 'provider'" rel="tag">provider</a> 
                or <a href="/questions/ask">ask your own question</a>.
        </h2>
</div>
</div>
<div id="sidebar">



     <script type="text/javascript">
        window.showNewUser = true;
            
                (function(){
                    var cs = window.sessionStorage && window.sessionStorage['tNewsletter'];
                    var m = /:\/\/([^\/]*)/.exec(document.referrer);
                    var h = {'www.reddit.com':1,'news.ycombinator.com':1};
                    if(window.sessionStorage && (cs || (m && m.length == 2 && h[m[1]]))){
                        showNewUser = false;
                        StackExchange.ready(function(){
                            StackExchange.newsletterAd.loader(m[1], cs);
                        });
                    }
                    if (window.localStorage && showNewUser){
                        var c = parseInt(localStorage['nuCounter'],10); 
                        c = isNaN(c) ? 1 : c+1;
                        window.localStorage['nuCounter'] = c; 
                        showNewUser = c < 10;
                    }
                })()
            
     </script>
    <div class="module newuser newuser-greeting" id="newuser-box" style="display:none;">
        <h4>Hello World!</h4>
        <div>
            <p>This is a collaboratively edited question and answer site for <b>professional and enthusiast programmers</b>. It's 100% free, no registration required.</p>
            <p class="ar"><a href="/about?mnu=1">about &raquo;</a>&nbsp;&nbsp;&nbsp;<a href="/faq?mnu=1">faq &raquo;</a>
            </p>
        </div>
    </div>
     <script type="text/javascript">
        if (showNewUser) {
            document.getElementById('newuser-box').style.display = '';
        }
     </script>
    <div class="module question-stats">
        <p class="label-key">tagged</p>
        <div class="tagged"><a href="/questions/tagged/vbscript" class="post-tag" title="show questions tagged 'vbscript'" rel="tag">vbscript</a>&nbsp;<span class="item-multiplier"><span class="item-multiplier-x">&times;</span>&nbsp;<span class="item-multiplier-count">3550</span></span><br>
<a href="/questions/tagged/64bit" class="post-tag" title="show questions tagged '64bit'" rel="tag">64bit</a>&nbsp;<span class="item-multiplier"><span class="item-multiplier-x">&times;</span>&nbsp;<span class="item-multiplier-count">1817</span></span><br>
<a href="/questions/tagged/32bit" class="post-tag" title="show questions tagged '32bit'" rel="tag">32bit</a>&nbsp;<span class="item-multiplier"><span class="item-multiplier-x">&times;</span>&nbsp;<span class="item-multiplier-count">395</span></span><br>
<a href="/questions/tagged/adodb" class="post-tag" title="show questions tagged 'adodb'" rel="tag">adodb</a>&nbsp;<span class="item-multiplier"><span class="item-multiplier-x">&times;</span>&nbsp;<span class="item-multiplier-count">329</span></span><br>
<a href="/questions/tagged/provider" class="post-tag" title="show questions tagged 'provider'" rel="tag">provider</a>&nbsp;<span class="item-multiplier"><span class="item-multiplier-x">&times;</span>&nbsp;<span class="item-multiplier-count">302</span></span><br>
</div>
        <table id="qinfo">
            <tr>
                <td><p class="label-key">asked</p></td>
                <td style="padding-left:10px"><p class="label-key" title="2010-05-10 21:29:40Z"><b>2 years ago</b></p></td>
            </tr>
            <tr>
                <td><p class="label-key">viewed</p></td>

                <td style="padding-left:10px"><p class="label-key"><b>13,833 times</b></p></td>
            </tr>
            <tr>
                <td><p class="label-key">active</p></td>
                <td style="padding-left:10px"><p class="label-key"><b><a href="?lastactivity" class="lastactivity-link" title="2010-11-25 09:29:27Z">1 year ago</a></b></p></td>
            </tr>
        </table>
    </div>

<div class="module community-bulletin" data-tracker="cb=1">
    <h4>Community Bulletin</h4>
    <div class="related">
        <div class="spacer bulletin-item-important">
            <div class="bulletin-item-type event-date">event</div>
            <div class="bulletin-item-content">
                <a href="http://stackoverflow.com/election" class="question-hyperlink" target="_blank">2012 Community Moderator Election</a>
                <span class="event-date" style="white-space: nowrap;">&ndash; ends <span title="2012-06-19 20:00:00Z" class="relativetime">in 3 days</span></span>
            </div>
            <br class="cbt" />
        </div>
    </div>
</div>
    
        <script type="text/javascript">
            var scriptSrc = "http://engine2.adzerk.net/z/8277/adzerk1_2_4_43,adzerk2_2_17_45,adzerk3_2_4_44?keywords=vbscript,64bit,32bit,adodb,provider";
            if (document.referrer) {
                if (/\?/.test(scriptSrc))
                    scriptSrc += "&";
                else
                    scriptSrc += "?";
                scriptSrc += "xReferrer=" + document.referrer;
            }
            StackExchange.ready(function(){var z = document.createElement("script"); z.type = "text/javascript"; z.async = "true"; z.src = scriptSrc; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(z, s);});
        </script>
    
    <div class="everyonelovesstackoverflow" id="adzerk2">
    </div>

    
    <div id="hireme">
        <script type="text/javascript">
            var careers_adurl="http://careers.stackoverflow.com/gethired/js",careers_cssurl="http://cdn.sstatic.net/careers/gethired/sidebar.chirp.min.css?372806",careers_leaderboardcssurl="http://cdn.sstatic.net/careers/gethired/ninja.min.css?372806",careers_companycssurl="http://cdn.sstatic.net/careers/gethired/company",careers_adselector="div.hireme, div#hireme";StackExchange.ready(function(){$.ajax({url:"http://cdn.sstatic.net/careers/gethired/loader.min.js?372806",dataType:"script",cache:true})});
        </script>
    </div>

        <div style="margin-bottom: 10px;">
        
<style type="text/css">
#newsletter-ad {
    width: 190px;
    height: 250px;
    overflow: hidden;
    background: url('http://cdn.sstatic.net/stackoverflow/img/newsletter-ad.png');
    padding: 0 15px 0 15px;
}
#newsletter-ad-header {
    margin-top: 60px;
}
#newsletter-ad ul {
    margin: 1em 0 1em 1.5em;
}
#newsletter-ad ul li {
    margin-bottom: 5px;
}
#newsletter-signup-container {
    text-align: center;
}
#newsletter-preview-container {
    margin-top: 10px;
    text-align: center;
}
#newsletter-email-input {
    width: 200px;
}
</style>

<script>
    StackExchange.ready(function () {
        StackExchange.newsletterAd.init();
    });
</script>

<div id="newsletter-ad">
    <p id="newsletter-ad-header">Get the <strong>weekly newsletter!</strong></p>
    <ul>
        <li>Top questions and answers</li>
        <li>Important announcements</li>
        <li>Unanswered questions</li>
    </ul>
    <div id="newsletter-signup-container"><input id="newsletter-signup" type="button" value="Sign up for the newsletter" /></div>
    <p id="newsletter-preview-container">see an <a href="http://stackexchange.com/newsletters/newsletter?site=stackoverflow.com" id="newsletter-preview">example newsletter</a></p>
    <div class="dno">
            <p class="privacy-policy-agreement">
        By subscribing, you agree to the 
        <a href="http://stackexchange.com/legal/privacy-policy" target="_blank">privacy policy</a> and 
        <a href="http://stackexchange.com/legal/terms-of-service" target="_blank">terms of service</a>.
    </p>

    </div>
</div>

    </div>
  
    
    <div class="module sidebar-related">
        <h4 id="h-related">Related</h4>
        <div class="related" data-tracker="rq=1">
            <div class="spacer">
<a href="/questions/191873/determining-64-bit-vs-32-bit-windows" class="question-hyperlink">Determining 64-bit vs. 32-bit Windows</a>
</div>
<div class="spacer">
<a href="/questions/254368/is-there-a-bandwidth-improvement-from-installing-a-32-bit-operating-system-on-a" class="question-hyperlink">Is there a bandwidth improvement from installing a 32-bit operating system on a 64-bit machine?</a>
</div>
<div class="spacer">
<a href="/questions/1036380/can-i-still-develop-32-bit-applications-using-a-64-bit-machine" class="question-hyperlink">Can I still develop 32-bit applications using a 64-bit machine?</a>
</div>
<div class="spacer">
<a href="/questions/1210567/import-32-bit-dsn-into-64-bit-window-server" class="question-hyperlink">Import 32-bit dsn into 64-bit window server</a>
</div>
<div class="spacer">
<a href="/questions/1254650/should-i-use-a-32-bit-or-64-bit-os-for-a-development-machine" class="question-hyperlink">Should I use a 32-bit or 64-bit OS for a development machine?</a>
</div>
<div class="spacer">
<a href="/questions/1272357/how-to-compile-a-32-bit-binary-on-a-64-bit-linux-machine-with-gcc-cmake" class="question-hyperlink">How to compile a 32-bit binary on a 64-bit linux machine with gcc/cmake</a>
</div>
<div class="spacer">
<a href="/questions/1849344/how-can-i-enable-my-32-bit-delphi-application-to-use-4gb-of-memory-on-64-bit-win" class="question-hyperlink">How can I enable my 32-bit Delphi application to use 4gb of memory on 64-bit windows (via Wow64.exe)?</a>
</div>
<div class="spacer">
<a href="/questions/2062020/how-can-i-tell-if-im-running-in-64-bit-jvm-or-32-bit-jvm" class="question-hyperlink">How can I tell if I&#39;m running in 64-bit JVM or 32-bit JVM?</a>
</div>
<div class="spacer">
<a href="/questions/2991471/net-3-5sp1-64-bit-memory-model-vs-32-bit-memory-model" class="question-hyperlink">.NET 3.5SP1 64-bit memory model vs. 32-bit memory model</a>
</div>
<div class="spacer">
<a href="/questions/3586040/why-is-the-64-bit-msbuild-loading-32-bit-extensions" class="question-hyperlink">Why is the 64-bit MSBuild loading 32-bit extensions?</a>
</div>
<div class="spacer">
<a href="/questions/3661368/how-can-i-choose-between-32-bit-or-64-bit-build-in-c-sharp-express" class="question-hyperlink">How can I choose between 32-bit or 64-bit build in C# Express?</a>
</div>
<div class="spacer">
<a href="/questions/4219107/how-can-i-comine-two-32-bit-registers-into-a-64-bit-answer" class="question-hyperlink">How can I comine two 32-bit registers into a 64-bit answer?</a>
</div>
<div class="spacer">
<a href="/questions/5178598/32-bit-or-64-bit-application-on-64-bit-os" class="question-hyperlink">32-bit or 64-bit application on 64-bit OS?</a>
</div>
<div class="spacer">
<a href="/questions/5210993/can-only-run-one-instance-of-adodb-stream-extremely-slow" class="question-hyperlink">Can only run one instance of ADODB.Stream - extremely slow</a>
</div>
<div class="spacer">
<a href="/questions/5969600/how-to-fix-multiple-step-ole-db-operation-generated-errors-in-vbscript" class="question-hyperlink">How to fix Multiple-step OLE DB operation generated errors in VBScript</a>
</div>
<div class="spacer">
<a href="/questions/6331432/will-a-visual-basic-6-program-run-on-a-64-bit-machine" class="question-hyperlink">Will a Visual Basic 6 program run on a 64-bit machine?</a>
</div>
<div class="spacer">
<a href="/questions/6991431/vbs-windows-64bit-32bit-registry-read-problem" class="question-hyperlink">VBS Windows 64bit/32bit registry read problem</a>
</div>
<div class="spacer">
<a href="/questions/7426231/how-to-deploy-64-bit-version-of-dll-on-azure-but-use-the-32-bit-version-on-dev" class="question-hyperlink">How to deploy 64-bit version of DLL on Azure, but use the 32-bit version on dev boxes</a>
</div>
<div class="spacer">
<a href="/questions/7491194/32-bit-vmware-on-a-64-bit-system-for-a-64-bit-vm-instance" class="question-hyperlink">32-bit VMWare on a 64-bit system for a 64-bit VM instance</a>
</div>
<div class="spacer">
<a href="/questions/7635055/open-in-32-bit-mode" class="question-hyperlink">Open in 32-bit mode</a>
</div>
<div class="spacer">
<a href="/questions/7904662/detect-32-bit-or-64-bit" class="question-hyperlink">Detect 32-bit or 64-bit</a>
</div>
<div class="spacer">
<a href="/questions/8429313/a-generic-vbscript-function-to-connect-to-any-database-and-execute-any-sql-query" class="question-hyperlink">A generic VBscript function to connect to any database and execute any SQL query</a>
</div>
<div class="spacer">
<a href="/questions/8588960/determine-if-current-powershell-process-is-32-bit-or-64-bit" class="question-hyperlink">Determine if current PowerShell Process is 32-bit or 64-bit?</a>
</div>
<div class="spacer">
<a href="/questions/9569712/mixing-32-bit-jdbc-with-64-bit-database-on-same-server" class="question-hyperlink">Mixing 32-bit JDBC with 64-bit database on same server</a>
</div>
<div class="spacer">
<a href="/questions/10069177/how-to-compile-64-bit-file-linking-with-32-bit-library" class="question-hyperlink">How to compile 64-bit file linking with 32-bit library</a>
</div>

        </div>
    </div>
</div>

<div id="feed-link">
    <div id="feed-link-text"><a href="/feeds/question/2806584" title="feed of this question and its answers"><span class="feed-icon"></span>question feed</a></div>
</div>

<noscript>
    <div><img src="/posts/2806584/ivc/5373" class="dno" alt="" width="0" height="0"></div>
</noscript><div style="display:none" id="prettify-lang">lang-vb</div></div>
        </div>
    </div>
    <div id="footer">
        <div class="footerwrap">
            <div id="footer-menu">
                <a href="/about">about</a> |
                <a href="/faq">faq</a> |
                <a href="http://blog.stackexchange.com?blb=1">blog</a> |
                    <a href="http://chat.stackoverflow.com">chat</a> |
                <a href="http://data.stackexchange.com">data</a> |
                <a href="http://shop.stackexchange.com/">shop</a> |
                <a href="http://stackexchange.com/legal">legal</a> |
                <a href="http://stackexchange.com/legal/privacy-policy">privacy policy</a> |
                <a href="http://engine.adzerk.net/redirect/0/2776/2751/0/4de3c60f719c4dfcb1a57531c7050090/0">advertising info</a> |
                <a onclick="StackExchange.switchMobile('on', '/questions/2806584/how-do-i-run-a-vbscript-in-32-bit-mode-on-a-64-bit-machine')">mobile</a> |

                <b><a href="mailto:team@stackoverflow.com">contact us</a></b>
                  | <b><a href="http://meta.stackoverflow.com">feedback</a></b>
                <div id="footer-sites">
                    
                        <span style="color:#FE7A15;font-size:140%">&#9632;</span>&nbsp;<a href="http://stackoverflow.com">stackoverflow.com</a>&nbsp; 
                        <span style="color:#FE7A15;font-size:140%">&#9632;</span>&nbsp;<a href="http://stackapps.com">api/apps</a>&nbsp; 
                        <span style="color:#FE7A15;font-size:140%">&#9632;</span>&nbsp;<a href="http://careers.stackoverflow.com">careers</a>&nbsp; 
                        <span style="color:#E8272C;font-size:140%">&#9632;</span>&nbsp;<a href="http://serverfault.com">serverfault.com</a>&nbsp; 
                        <span style="color:#00AFEF;font-size:140%">&#9632;</span>&nbsp;<a href="http://superuser.com">superuser.com</a>&nbsp; 
                        <span style="color:#969696;font-size:140%">&#9632;</span>&nbsp;<a href="http://meta.stackoverflow.com">meta</a>&nbsp; 
                        <span style="color:#46937D;font-size:140%">&#9632;</span>&nbsp;<a href="http://area51.stackexchange.com">area&nbsp;51</a>&nbsp; 
                        <span style="color:#C0D0DC;font-size:140%">&#9632;</span>&nbsp;<a href="http://webapps.stackexchange.com">webapps</a>&nbsp; 
                        <span style="color:#000000;font-size:140%">&#9632;</span>&nbsp;<a href="http://gaming.stackexchange.com">gaming</a>&nbsp; 
                        <span style="color:#dd4814;font-size:140%">&#9632;</span>&nbsp;<a href="http://askubuntu.com">ubuntu</a>&nbsp; 
                        <span style="color:#9ce4fe;font-size:140%">&#9632;</span>&nbsp;<a href="http://webmasters.stackexchange.com">webmasters</a>&nbsp; 
                        <span style="color:#cf4d3f;font-size:140%">&#9632;</span>&nbsp;<a href="http://cooking.stackexchange.com">cooking</a>&nbsp; 
                        <span style="color:#f4f28d;font-size:140%">&#9632;</span>&nbsp;<a href="http://gamedev.stackexchange.com">game development</a>&nbsp; 
                        <span style="color:#0f3559;font-size:140%">&#9632;</span>&nbsp;<a href="http://math.stackexchange.com">math</a>&nbsp; 
                        <span style="color:#f2f2f2;font-size:140%">&#9632;</span>&nbsp;<a href="http://photo.stackexchange.com">photography</a>&nbsp; 
                        <span style="color:#037187;font-size:140%">&#9632;</span>&nbsp;<a href="http://stats.stackexchange.com">stats</a>&nbsp; 
                        <span style="color:#f1e7cc;font-size:140%">&#9632;</span>&nbsp;<a href="http://tex.stackexchange.com">tex</a>&nbsp; 
                        <span style="color:#e1cdae;font-size:140%">&#9632;</span>&nbsp;<a href="http://english.stackexchange.com">english</a>&nbsp; 
                        <span style="color:#a2d9f6;font-size:140%">&#9632;</span>&nbsp;<a href="http://cstheory.stackexchange.com">theoretical cs</a>&nbsp; 
                        <span style="color:#1b3e6c;font-size:140%">&#9632;</span>&nbsp;<a href="http://programmers.stackexchange.com">programmers</a>&nbsp; 
                        <span style="color:#293a5d;font-size:140%">&#9632;</span>&nbsp;<a href="http://unix.stackexchange.com">unix</a>&nbsp;
                        <span style="color:#bec0cb;font-size:140%">&#9632;</span>&nbsp;<a href="http://apple.stackexchange.com">apple</a>&nbsp;
                        <span style="color:#939185;font-size:140%">&#9632;</span>&nbsp;<a href="http://wordpress.stackexchange.com">wordpress</a>&nbsp;
                        <span style="color:#ebf5f5;font-size:140%">&#9632;</span>&nbsp;<a href="http://physics.stackexchange.com">physics</a>&nbsp;
                        <span style="color:#4176ab;font-size:140%">&#9632;</span>&nbsp;<a href="http://diy.stackexchange.com">home&nbsp;improvement</a>&nbsp;
                        <span style="color:#d1d8d7;font-size:140%">&#9632;</span>&nbsp;<a href="http://gis.stackexchange.com">gis</a>&nbsp;
                        <span style="color:#e5e2d3;font-size:140%">&#9632;</span>&nbsp;<a href="http://electronics.stackexchange.com">electronics</a>&nbsp;
                        <span style="color:#a4c639;font-size:140%">&#9632;</span>&nbsp;<a href="http://android.stackexchange.com">android</a>&nbsp;
                        <span style="color:#2e4e60;font-size:140%">&#9632;</span>&nbsp;<a href="http://security.stackexchange.com">security</a>&nbsp;
                        <span style="color:#45bcb5;font-size:140%">&#9632;</span>&nbsp;<a href="http://bicycles.stackexchange.com">bicycles</a>&nbsp;
                        <span style="color:#00adee;font-size:140%">&#9632;</span>&nbsp;<a href="http://dba.stackexchange.com">dba</a>&nbsp;
                        <span style="color:#2edaf0;font-size:140%">&#9632;</span>&nbsp;<a href="http://drupal.stackexchange.com">drupal</a>&nbsp;
                        <span style="color:#213951;font-size:140%">&#9632;</span>&nbsp;<a href="http://sharepoint.stackexchange.com">sharepoint</a>&nbsp;
                        <span style="color:#73abb3;font-size:140%">&#9632;</span>&nbsp;<a href="http://scifi.stackexchange.com">scifi &amp; fantasy</a>&nbsp;
                        <span style="color:#23629F;font-size:140%">&#9632;</span>&nbsp;<a href="http://ux.stackexchange.com">user experience</a>&nbsp;
                        <span style="color:#faff72;font-size:140%">&#9632;</span>&nbsp;<a href="http://skeptics.stackexchange.com">skeptics</a>&nbsp;
                        <span style="color:#623121;font-size:140%">&#9632;</span>&nbsp;<a href="http://rpg.stackexchange.com">rpg</a>&nbsp;
                        <span style="color:#e4be88;font-size:140%">&#9632;</span>&nbsp;<a href="http://judaism.stackexchange.com">judaism</a>&nbsp;
                </div>
            </div>
            <div id="footer-flair">
                <a class="peer1" href="http://www.peer1.com/stackoverflow"></a>  
	            <a href="http://creativecommons.org/licenses/by-sa/3.0/" class="cc-wiki-link"></a>
                <div id="svnrev">rev 2012.6.15.2962</div>
            </div>
            <div id="copyright">
                site design / logo &copy; 2012 stack exchange inc; 
                user contributions licensed under <a href="http://creativecommons.org/licenses/by-sa/3.0/" rel="license">cc-wiki</a> with <a href="http://blog.stackoverflow.com/2009/06/attribution-required/" rel="license">attribution required</a>
            </div>
            

        </div>
    </div>
    
    <noscript>
        <div id="noscript-warning">Stack Overflow works best with JavaScript enabled<img src="http://pixel.quantserve.com/pixel/p-c1rF4kxgLUzNc.gif" alt="" class="dno"></div>
    </noscript>
    <script type="text/javascript">var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-5620270-1']);
        _gaq.push(['_setCustomVar', 1, 'tags', '|vbscript|64bit|32bit|adodb|provider|']); 
_gaq.push(['_trackPageview']);
    var _qevents = _qevents || [];
    (function(){
        var s=document.getElementsByTagName('script')[0];
        var ga=document.createElement('script');
        ga.type='text/javascript';
        ga.async=true;
        ga.src='http://www.google-analytics.com/ga.js';
        s.parentNode.insertBefore(ga,s);
        var sc=document.createElement('script');
        sc.type='text/javascript';
        sc.async=true;
        sc.src='http://edge.quantserve.com/quant.js'; 
        s.parentNode.insertBefore(sc,s);
    })();
    </script>
    <script type="text/javascript">
        _qevents.push({ qacct: "p-c1rF4kxgLUzNc" });
    </script>    
    
    <script type='text/javascript'>mPt.probe(1)</script><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script><script type='text/javascript'>mPt.probe(1)</script><script type='text/javascript'>mPt.probe(4)</script><script type="text/javascript" src="http://cdn.sstatic.net/js/stub.js?v=2ac844da354d"></script><script type='text/javascript'>mPt.probe(4)</script>    <script type="text/javascript">
        
        StackExchange.ready(function () {

            StackExchange.question.init({showAnswerHelp:true,totalCommentCount:0,shownCommentCount:0,highlightColor:'#F4A83D',backgroundColor:'#FFF',questionId:2806584});

            styleCode();

                StackExchange.realtime.subscribeToQuestion('1', '2806584');
        });
    </script>    <script type="text/javascript">
        StackExchange.init({"stackAuthUrl":"https://stackauth.com","serverTime":1339906872,"styleCode":true,"enableUserHovercards":true,"site":{"name":"Stack Overflow","description":"Q&A for professional and enthusiast programmers","isNoticesTabEnabled":true,"newTitleSearchBoxEnabled":false},"user":{"isAnonymous":true,"fkey":"b571d2f1ba35e5ae5a511479d6e89706","notificationsUnviewedCount":0,"inboxUnviewedCount":-1}});
        StackExchange.using.setCacheBreakers({"js/prettify-full.js":"4ed9aa4b8d0e","js/moderator.js":"8c49fc268737","js/full-anon.js":"8577eab04b42","js/full.js":"e6770c069b64","js/wmd.js":"eb1157179598","js/third-party/jquery.autocomplete.min.js":"e5f01e97f7c3","js/mobile.js":"6e412827da99","js/help.js":"fc9fb0517db2","js/tageditor.js":"c1ba807b32aa","js/tageditornew.js":"bd66fabe1c71","js/inline-tag-editing.js":"be882e188985","js/revisions.js":"8c6bcd93b7fe","js/suggested-edits.js":"03fb8d2c4068","js/probes.js":"beb933322ff0"});
        
    </script>    <script type="text/javascript">
        StackExchange.ready(function () {
            var shareUrl = 'http%3a%2f%2fstackoverflow.com%2fq%2f2806584';
            var shareMsg = 'How+do+I+run+a+VBScript+in+32-bit+mode+on+a+64-bit+machine%3f';
            
            StackExchange.share.gplus($('#gp-share-2806584'), shareUrl, shareMsg) ;
            StackExchange.share.facebook($('#fb-share-2806584'), shareUrl, shareMsg);
            StackExchange.share.twitter($('#twitter-share-2806584'), shareUrl, shareMsg);
        });
    </script><script type="text/javascript">
    StackExchange.ready(function() {
        initTagRenderer("".split(" "), "".split(" "));
         
        prepareEditor({
            heartbeatType: 'answer',
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
        });
        
    });  
</script><script type="text/javascript">
StackExchange.ready(function(){$.get('/posts/2806584/ivc/5373');});
</script>
 <script type="text/javascript">
window.mPtt = mPt.t;
window.mPttRG = '03c69038-3e68-475c-90a1-e0ed1c9d4e09';
(function(){
        var f=document.getElementsByTagName('script')[0];
        var s=document.createElement('script');
        s.type='text/javascript';
        s.async=true;
        s.src = 'http://cdn.sstatic.net/js/probes.js?v=beb933322ff0';
        f.parentNode.insertBefore(s, f);
})();
</script>    
</body>
</html>